package com.ruoyi.gis.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * layer分组对象 gis_layer_product_group
 *
 * @author rww
 * @date 2023-11-16
 */
public class GisLayerProductGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String groupName;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    private Boolean checked;

    private String groupCode;

    private Long groupPid;

    private Long groupLevel;

    private String dataType;
    private String shifouRegion;//是否区域字段（0否，1是）
    private List<GisLayerProduct> layerProducts;

    private List<GisLayerProductGroup> layerProductGroups;

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public List<GisLayerProduct> getLayerProducts() {
        return layerProducts;
    }

    public void setLayerProducts(List<GisLayerProduct> layerProducts) {
        this.layerProducts = layerProducts;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGroupName(String groupName)
    {
        this.groupName = groupName;
    }

    public String getGroupName()
    {
        return groupName;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public Long getGroupPid() {
        return groupPid;
    }

    public void setGroupPid(Long groupPid) {
        this.groupPid = groupPid;
    }

    public Long getGroupLevel() {
        return groupLevel;
    }

    public void setGroupLevel(Long groupLevel) {
        this.groupLevel = groupLevel;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public List<GisLayerProductGroup> getLayerProductGroups() {
        return layerProductGroups;
    }

    public void setLayerProductGroups(List<GisLayerProductGroup> layerProductGroups) {
        this.layerProductGroups = layerProductGroups;
    }

    public String getShifouRegion() {
        return shifouRegion;
    }

    public void setShifouRegion(String shifouRegion) {
        this.shifouRegion = shifouRegion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupName", getGroupName())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("sort", getSort())
            .toString();
    }
}
